import req from '../utils/request';
import * as URL from '../constants/api';
import * as types from '../types/api';
import { AxiosResponse } from 'axios';

// 新鲜好物
export function getNewMulti (): Promise<types.NewMultiData[]> {
  return req({
    url: URL.NEW_MULTI,
  })
  .then((res: AxiosResponse<types.API<types.NewMultiData>>) => res.data.result);
}
